package com.mt.pojo;


import com.baomidou.mybatisplus.annotation.*;
import com.mt.enums.Sex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Wang
 * @Description 用户实体类
 * @since 2020-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mt_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "自增id")
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    private String userId;

    private String password;

    private Sex sex;

    private String sign;

    private String email;

    private String userName;

    @ApiModelProperty(value = "上次登录时间")
    private Date lastTime;

    private String phone;

    private String avatar;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}